package com.example.sls.service.impl.field;

import com.example.sls.pojo.field.Fields;
import com.example.sls.dao.field.FieldsDao;
import com.example.sls.service.intserfaces.field.FieldsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 场地表(Fields)表服务实现类
 *
 * @author 蓝江富
 * @since 2024-06-18 10:54:54
 */
@Service
public class FieldsServiceImpl implements FieldsService {
  @Autowired
  FieldsDao fieldsDao;

  @Override
  public Fields queryById(Integer id) {
    return fieldsDao.queryById(id);
  }

  @Override
  public int deleteById(Integer id) {
    return fieldsDao.deleteById(id);
  }

  @Override
  public int update(Fields fields) {
    return fieldsDao.update(fields);
  }

  @Override
  public int insert(Fields fields) {
    return fieldsDao.insert(fields);
  }

  @Override
  public long count() {
    return fieldsDao.count();
  }

  @Override
  public List<Fields> queryAllByLimit(Fields fields, Integer pageSize, Integer offset) {
    return fieldsDao.queryAllByLimit(fields, pageSize, offset);
  }
}
